package ycl.system.service;

import ycl.base.req.SysPermissionReq;
import ycl.system.entity.SysPermission;
import ycl.common.base.service.BaseService;
import ycl.system.res.SysPermissionRes;

import java.util.List;

/**
 * <p>
 * 权限 服务类
 * </p>
 *
 * @author ycl
 * @since 2022-03-03 11:43:56
 */
public interface SysPermissionService
		extends BaseService<SysPermission, SysPermissionReq, SysPermissionRes> {

	/**
	 * 根据用户id查询权限
	 *
	 * @param userId 用户id
	 * @return 权限集合
	 */
	List<SysPermission> selectByUserId(Long userId);
}
